package com.shengqi.proxy_hook.hook.activityhook;

import android.app.Application;
import android.content.Context;
import android.content.res.Resources;
import android.os.Build;
import android.util.Log;

import com.shengqi.proxy_hook.R;
import com.shengqi.proxy_hook.hook.Reflector;

import java.lang.ref.WeakReference;
import java.lang.reflect.Method;
import java.util.Map;

public class MyApplication extends Application {
    private static final String TAG = "MyApplication";

    @Override
    public void onCreate() {
        super.onCreate();
        Log.e(TAG, "mResources onCreate = " + getResources() + " "  + getResources().getText(R.string.context_start_activity));
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        ActivityThreadHookHelper.doContextStartHook();

        SetTextHookHelper.doTextHook(base);
    }
}
